home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / swtools / MMmalloc / MMdbx < prev    next >
Encoding:
Text File  |  1994-08-02  |  713 b   |  30 lines

  1. #
  2. # dbx script to dumpt MMmalloc malloc_check information.
  3. #
  4. # This script will print the following values
  5. # - message describing the problem and possible cause
  6. # - Most likely problem address
  7. # - Another problem address
  8. # - MMmalloc failure ID.
  9. # - malloc_check() state
  10. # - 1 indicates a panic and 2 indicates an address check failure
  11. #
  12. # This is an example.  0x100572e4 was the address of failure.
  13. # 0x5fff0934 = "Bad quick slot : overwrite before allocated mem\n" 
  14. # 0x100572e4 
  15. # 0x10056b88 
  16. # 0x10000a16 
  17. # 2 
  18. # 1
  19. #
  20.  
  21. alias MMdump "\
  22. print (char*)__mm_message\n\
  23. print (int*)__mm_chkaddr1\n\
  24. print (int*)__mm_chkaddr2\n\
  25. print (int*)__mm_xtra\n\
  26. print (int)__mm_ck_class\n\
  27. print (int)__mm_ck_type\n"
  28.  
  29. MMdump
  30.